#ifndef __BSP_H__
#define __BSP_H__

#include "main.h"
#include "stdio.h"

#define RCC_HSE_Enable      0       // 使能HSE
#define BSP_TICKS_PER_SEC   1000U

#define Bsp_hw_interrupt_disable()      __disable_irq()
#define Bsp_hw_interrupt_enable()       __enable_irq()

#define Bsp_SysTick_Start()             SET_BIT(SysTick->CTRL, SysTick_CTRL_TICKINT_Msk)
#define Bsp_SysTick_Stop()              CLEAR_BIT(SysTick->CTRL, SysTick_CTRL_TICKINT_Msk)

void BSP_init(void);
void BSP_Startup(void);
void BSP_TickDelay(uint32_t Delay);
void BSP_usDelay(uint32_t usDelay);

#endif
